export namespace main {
	
	export class SerialConfig {
	    portName: string;
	    baudRate: number;
	    dataBits: number;
	    parity: string;
	    stopBits: number;
	    flowControl: string;
	
	    static createFrom(source: any = {}) {
	        return new SerialConfig(source);
	    }
	
	    constructor(source: any = {}) {
	        if ('string' === typeof source) source = JSON.parse(source);
	        this.portName = source["portName"];
	        this.baudRate = source["baudRate"];
	        this.dataBits = source["dataBits"];
	        this.parity = source["parity"];
	        this.stopBits = source["stopBits"];
	        this.flowControl = source["flowControl"];
	    }
	}
	export class SerialMessage {
	    data: string;
	    direction: string;
	    timestamp: string;
	    format: string;
	
	    static createFrom(source: any = {}) {
	        return new SerialMessage(source);
	    }
	
	    constructor(source: any = {}) {
	        if ('string' === typeof source) source = JSON.parse(source);
	        this.data = source["data"];
	        this.direction = source["direction"];
	        this.timestamp = source["timestamp"];
	        this.format = source["format"];
	    }
	}

}

